import request from '@/utils/request'

export function getReportList(data) {
  return request({
    url: '/report/getListByPage?page=' + data.page + '&limit=' + data.limit +
      '&searchName=' + data.searchName +
      '&searchReason=' + data.searchReason,
    method: 'get'
  })
}

export function getReportDetail(data) {
  return request({
    url: '/report/getDeail?reportId=' + data.id,
    method: 'get'
  })
}

export function passReport(data) {
  return request({
    url: '/report/passReport',
    method: 'post',
    data: data
  })
}

export function refuseReport(data) {
  return request({
    url: '/report/refuseReport',
    method: 'post',
    data: data
  })
}
